
/**
 *  处理路由，分发请求
 */
const express = require('express');
var router = express.Router(),
    multer = require('multer'),
    upload = multer({ dest: './public/images' }),
    // 导入文章 controller
    gameCtrl = require('../controller/gameCtrl.js');

router
    // 加载首页
    .get('/', gameCtrl.uploadhtml)
    // 加载图片
    .get('/public/images/*', gameCtrl.showfile)
    .get('/isOut',gameCtrl.ISOut)

module.exports = router;